package com.ssm.service.impl;

import com.ssm.dao.RoleMapper;
import com.ssm.dao.UserMapper;
import com.ssm.pojo.Role;
import com.ssm.pojo.User;
import com.ssm.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Objects;

/**
 * Created by ADMIN on 2018/6/19.
 */
@Service
public class UserServiceImpl implements IUserService{

    @Autowired
    private UserMapper userDao;

    @Autowired
    private RoleMapper roleDao;

    @Override
    public User findUserByUsername(String username) {
        return userDao.findUserByUsername(username);
    }

    @Override
    public List<Role> findRoles(String usrname) {

        return null;
    }


}
